<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/perso_Editeur.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/perso_Editeur.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="perso__Editeur_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __perso_Editeur_h__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __perso_Editeur_h__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html">constante.h</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 
<a name="l00017"></a><a class="code" href="structPersonnage.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00018"></a>00018 {
<a name="l00019"></a><a class="code" href="structPersonnage.html#a2af770fbd86c66221b8b5c058d21a911">00019</a>     <span class="keywordtype">char</span> nom [30];
<a name="l00020"></a><a class="code" href="structPersonnage.html#a2d6596c9b2fdae2f51cad9c45756e347">00020</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a2d6596c9b2fdae2f51cad9c45756e347">race</a>;<span class="comment">/*0 : inconnu</span>
<a name="l00021"></a>00021 <span class="comment">                1 : humain</span>
<a name="l00022"></a>00022 <span class="comment">                2 : cyborg</span>
<a name="l00023"></a>00023 <span class="comment">                3 : sicaris</span>
<a name="l00024"></a>00024 <span class="comment">                4 : medarsins</span>
<a name="l00025"></a>00025 <span class="comment">                */</span>
<a name="l00026"></a><a class="code" href="structPersonnage.html#a86e38c8a151a40da66b01e07cc8c0917">00026</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a86e38c8a151a40da66b01e07cc8c0917">sexe</a>;<span class="comment">/*0 : inconnu</span>
<a name="l00027"></a>00027 <span class="comment">                1 : homme</span>
<a name="l00028"></a>00028 <span class="comment">                2 : femme*/</span>
<a name="l00029"></a><a class="code" href="structPersonnage.html#adfcc14b00dc473946f627b26c4d572ce">00029</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#adfcc14b00dc473946f627b26c4d572ce">faction</a>;<span class="comment">/*0 : inconnu</span>
<a name="l00030"></a>00030 <span class="comment">                1 : Sistéen</span>
<a name="l00031"></a>00031 <span class="comment">                2 : Heredian</span>
<a name="l00032"></a>00032 <span class="comment">                3 : Marchand</span>
<a name="l00033"></a>00033 <span class="comment">                */</span>
<a name="l00034"></a><a class="code" href="structPersonnage.html#a3179f755df5710380d13dd728bfc3649">00034</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a3179f755df5710380d13dd728bfc3649">carriere</a>;
<a name="l00035"></a><a class="code" href="structPersonnage.html#a0c58bfe1bf1565d8119743c5e523eedd">00035</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#a0c58bfe1bf1565d8119743c5e523eedd">argent</a>;
<a name="l00036"></a><a class="code" href="structPersonnage.html#ac78c240979d15de09b2b05ad0cf09f0b">00036</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#ac78c240979d15de09b2b05ad0cf09f0b">experience</a>;
<a name="l00037"></a><a class="code" href="structPersonnage.html#a7b310ef7a9567a19724a078172349d89">00037</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#a7b310ef7a9567a19724a078172349d89">niveau</a>;
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="structPersonnage.html#a4942ac36f63a988662b52ad6780eaea4">00039</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a4942ac36f63a988662b52ad6780eaea4">attaque</a>;
<a name="l00040"></a><a class="code" href="structPersonnage.html#a284068ace3f7e3002f36c91de81f7f46">00040</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a284068ace3f7e3002f36c91de81f7f46">defense</a>;
<a name="l00041"></a><a class="code" href="structPersonnage.html#a8f3d4c870e07c1781c41b0be430b7768">00041</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a8f3d4c870e07c1781c41b0be430b7768">intelligence</a>;
<a name="l00042"></a><a class="code" href="structPersonnage.html#a4590d61347a44aa3e59e1636b39ca009">00042</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#a4590d61347a44aa3e59e1636b39ca009">agilite</a>;
<a name="l00043"></a><a class="code" href="structPersonnage.html#ab1acf9f1fecc9a63cba02ff1bc8275a2">00043</a>     <span class="keywordtype">char</span> <a class="code" href="structPersonnage.html#ab1acf9f1fecc9a63cba02ff1bc8275a2">charisme</a>;
<a name="l00044"></a><a class="code" href="structPersonnage.html#a80732090d7f95fe88fc229a950b93d58">00044</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#a80732090d7f95fe88fc229a950b93d58">ptDeVie</a>;
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="structPersonnage.html#ab68ae3f7bd22992d382e9a7e5b816753">00046</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#ab68ae3f7bd22992d382e9a7e5b816753">posX</a>;
<a name="l00047"></a><a class="code" href="structPersonnage.html#ac0a3600213f050d2d394a8da7efdcb18">00047</a>     <span class="keywordtype">int</span> <a class="code" href="structPersonnage.html#ac0a3600213f050d2d394a8da7efdcb18">posY</a>;
<a name="l00048"></a>00048 
<a name="l00049"></a><a class="code" href="structPersonnage.html#ac7236fd938df0a9c7d979e2cdb3a8236">00049</a>         SDL_Surface* <a class="code" href="structPersonnage.html#ac7236fd938df0a9c7d979e2cdb3a8236">avatar</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 } <a class="code" href="structPersonnage.html">Personnage</a>;
<a name="l00052"></a>00052 
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#acb14ac296219c0eb85f769769d15f23f" title="Preconditions : perso est initialisé   Postconditions : retourne le nom de perso.">getPersoNom</a>(<span class="keywordtype">char</span>* maChaine, <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00058"></a>00058 
<a name="l00063"></a>00063 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a90b62dd9ef66048ff04fae3695136f74" title="Preconditions : perso est initialisé   Postconditions : retourne la race du perso.">getPersoRace</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00064"></a>00064 
<a name="l00069"></a>00069 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a7e4d26ccb48f9195d62ad6fcbc468aba" title="Preconditions : perso est initialisé   Postconditions : retourne la faction du perso.">getPersoFaction</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00070"></a>00070 
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a882d3af1be4857f4e076693fe838e72e" title="Preconditions : perso est initialisé   Postconditions : copie le nom de la faction de perso dans chai...">getPersoFactionNom</a>(<span class="keywordtype">char</span>* chaine, <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00076"></a>00076 
<a name="l00081"></a>00081 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#abb7b2f12a18731556e518f0dea9e5e32" title="Preconditions : perso est initialisé   Postconditions : retourne le sexe du perso.">getPersoSexe</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00082"></a>00082 
<a name="l00087"></a>00087 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a3c621b73751db56ac17f354c0b81a3d3" title="Preconditions : perso est initialisé   Postconditions : retourne la carriere du perso.">getPersoCarriere</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00088"></a>00088 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#abad81352129bf2eb102cd6ce4ca53fe5" title="Preconditions : perso est initialisé   Postconditions : retourne le nom de la carriere dans s...">getCarriereNom</a>(<span class="keywordtype">char</span> carriere, <span class="keywordtype">char</span>* s);
<a name="l00094"></a>00094 
<a name="l00099"></a>00099 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a719fa096ea2707a9e326a585acbb1e5f" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;argent du perso.">getPersoArgent</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00100"></a>00100 
<a name="l00105"></a>00105 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#aeac0fbb10a42bb8a8252f672a031e076" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;experience du perso.">getPersoExperience</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00106"></a>00106 
<a name="l00111"></a>00111 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a115c8e945f7aed70b27a4d9cd9ce78f1" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;attaque du perso.">getPersoAttaque</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00112"></a>00112 
<a name="l00117"></a>00117 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a0b2b5ff05924767445529b33fe651110" title="Preconditions : perso est initialisé   Postconditions : retourne la defense du perso.">getPersoDefense</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00118"></a>00118 
<a name="l00123"></a>00123 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a06d9d5cd1f30aa0522c1160c554f7896" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;intelligence du perso...">getPersoIntelligence</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00124"></a>00124 
<a name="l00129"></a>00129 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a74f8c1dfb69537280007a460925542a6" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;agilite du perso.">getPersoAgilite</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00130"></a>00130 
<a name="l00135"></a>00135 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#ab0df5449333b3771f7cfb509ed00f876" title="Preconditions : perso est initialisé   Postconditions : retourne le charsime du perso.">getPersoCharisme</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00136"></a>00136 
<a name="l00141"></a>00141 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a1f040fa9959b8ea0af05de2e64a45473" title="Preconditions : perso est initialisé   Postconditions : retourne les points de vie du perso...">getPersoPtDeVie</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00142"></a>00142 
<a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#ae05d6ccde3a4f61a365e5b07e1eed7e3" title="Preconditions : perso est initialisé   Postconditions : change la position en X du perso...">setPersoPosX</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keywordtype">int</span> x);
<a name="l00148"></a>00148 
<a name="l00153"></a>00153 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a00c8a5089f4aec7875cf4a240b8d85c7" title="Preconditions : perso est initialisé   Postconditions : récupère la position en Y du perso...">getPersoPosX</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00154"></a>00154 
<a name="l00159"></a>00159 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#af97c72b6811a9cfd7c47a73e6ba0f395" title="Preconditions : perso est initialisé   Postconditions : change la position en Y du perso...">setPersoPosY</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keywordtype">int</span> y);
<a name="l00160"></a>00160 
<a name="l00165"></a>00165 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a00c8a5089f4aec7875cf4a240b8d85c7" title="Preconditions : perso est initialisé   Postconditions : récupère la position en Y du perso...">getPersoPosX</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00166"></a>00166 
<a name="l00171"></a>00171 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a76bbb5863201ed1e778ab242ea38f49b" title="Preconditions : perso est initialisé   Postconditions : fixe la somme d&#39;argent du perso...">setPersoArgent</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keywordtype">int</span> somme);
<a name="l00172"></a>00172 
<a name="l00177"></a>00177 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a7172bd40f510146809d5773d1744a551" title="Preconditions : perso est initialisé   Postconditions : ajoute pdv aux points de vie de perso...">addPersoPtDeVie</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keywordtype">int</span> pdv);
<a name="l00178"></a>00178 
<a name="l00184"></a>00184 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a3c5c40bbdcb31fc766740446f6066339" title="Preconditions : perso est initialisé   Postconditions : 1 obj est ajouté à l&#39;inventaire de perso...">getNbPNJ</a>();
<a name="l00185"></a>00185 
<a name="l00190"></a>00190 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#aa17633cdc8e5ed865a0a175c8744ba09" title="Preconditions : tabPNJ n&#39;est pas initialisé   Postconditions : initialise tous les PNJ dans tabPNJ...">initialiserTousLesPNJ</a>(<a class="code" href="structPersonnage.html">Personnage</a>** tabPNJ);
<a name="l00191"></a>00191 
<a name="l00196"></a>00196 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a3259789468c454255dc6237b29bd6fef" title="Preconditions : tabPNJ est initialisé   Postconditions : libère tabPNJ.">libererTousLesPNJ</a>(<a class="code" href="structPersonnage.html">Personnage</a>* tabPNJ);
<a name="l00197"></a>00197 <span class="preprocessor">#endif</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
